<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="./css/tuangou.css"/>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
	</head>
	<body>
		<!-- 头部 S-->
		<header class="clearfix">
		<div class="logo fl"> 
			<a href="团购首页.html"><img src="img/logo.png"></a>
		</div>		<div class="selectBar fr">
			<select name="">
				<option value="">广州市</option>
				<option value="">佛山市</option>
				<option value="">深圳市</option>
			</select>
			
		</div>	
		<div class="searchBar ">
				<input type="search" />
				<input type="image" src="img/fangdahj.png" />
		</div>
			
	
		</header>
		<!--头部 E-->
		
		<!-- 主体S-->
		<section>
		<div class="bg"><img src="img/bg.png" alt="bgr"/>
		</div>
		<div class="youhui clearfix">

			<div class="youhui_logo clearfix">
				<img src="img/youhui.png" class="fl"/>
				<p class="fl">优惠团购</p>
			</div>
			<div class="youhui_more fr">
				<p class="fl">更多</p>
				<img src="img/more.png" class="fl"/>
			</div>
		</div>
		<div class="youhuibox">
			<div class="boxr boxr1">
				<div class="sbox fl zb">
					<img src="img/maiba.jpg"/>
				</div>
				<div class="sbox fl rb">
					<img src="img/jiudian.jpg"/>
				</div>
				
			</div>
			<div class="boxr">
				<div class="sbox fl zb">
					<img src="img/lvyou.jpg"/>
				</div>
				<div class="sbox fl rb">
					<img src="img/waimai.jpg"/>
				</div>
			</div>
		</div>
		
				<!--猜你喜欢/--><div class="youhui clearfix">	

			<div class="youhui_logo clearfix">
				<img src="img/caini.png" class="fl"/>
				<p class="fl">猜你喜欢</p>
			</div>
			<div class="youhui_more fr">
				<p class="fl">更多</p>
				<img src="img/more.png" class="fl"/>
			</div>
		</div>
				<!--万岁寿司--><div class="shangjia clearfix">
									<img src="img/shoushi.jpg" class="fl" />
									<div class="introduce fl">
											<h1>万岁寿司（正佳店）</h1>
											<h2>[100店通用]<span>双人套餐</span></h2>
												<h3>￥88.00</h3>
									</div>
									
								<div class="intRight fr">
									<h1><100m</h1>
									<h2>已售1000</h2>
								</div>
							</div>
				<!--周黑鸭--><div class="shangjia clearfix">
									<img src="img/zhouheiya.jpg" class="fl" />
									<div class="introduce fl">
											<h1>周黑鸭（正佳店）</h1>
											<h2>[100店通用]<span>双人套餐</span></h2>
												<h3>￥68.00</h3>
									</div>
									
								<div class="intRight fr">
									<h1><100m</h1>
									<h2>已售1000</h2>
								</div>
							</div>
				
				
		</section>
		<!-- 主体E-->
		
		
		<!--尾部S-->
		<footer class="clearfix">
			<div class="foot fl"><img src="./img/foot1.png" ><p><a href="团购首页.html">首页</a></p></div>
			<div class="foot fl"><img src="./img/foot2.png" ><p><a href="#">分类</a></p></div>
			<div class="foot fl"><img src="./img/foot3.png" ><p><a href="#">发现</a></p></div>
			<div class="foot fl"><img src="./img/foot4.png" ><p><a href="我的.html">我的</a></p></div>
			
		</footer>
		<!--尾部E-->
		
		<script>
    
        
    document.body.style.height = window.innerHeight + "px";
    
    /*动态改变根元素字体大小*/
    function recalc() {
    	//获取客户端宽度
        var clientWidth = document.documentElement.clientWidth;
        if(!clientWidth) return;
       // 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
       document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
      
    }

    function initRecalc() {
        recalc();
        // if(浏览器支持横竖屏切换的事件){横竖屏事件}else{ resize事件 }
        var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
        if(!document.addEventListener) return;
        window.addEventListener(resizeEvt, recalc, false);
        document.addEventListener('DOMContentLoaded', recalc, false);
    }
                initRecalc();
            
            
            
        </script>

	
	</body>
</html>

